pkgname=thrulay
pkgver=0.9
pkgrel=1
arch=('i386' 'x86_64')
url="https://sourceforge.net/projects/thrulay"
license=('GPL')
source=("http://jaist.dl.sourceforge.net/project/${pkgname}/${pkgname}/${pkgver}/${pkgname}-${pkgver}.tar.gz")
sha256sums=('373d5613dfe371f6b4f48fc853f6c27701b2981ba4100388c9881cb802d1780d')

build()
{
	cd "${srcdir}/thrulay-${pkgver}"
	[ ! -f "/usr/share/misc/config.guess" ]&&
	curl -s -o /usr/share/misc/config.guess 'http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD'
	[ ! -f "/usr/share/misc/config.sub" ]&&
	curl -s -o /usr/share/misc/config.sub 'http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD'
	cp /usr/share/misc/config.{guess,sub} .
	./configure --prefix="${pkgdir}/lkp/benchmarks/${pkgname}"
}

package()
{
	cd "${srcdir}/thrulay-${pkgver}"
	make install
}
